﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Biz_Dal.Biz;

namespace Biz_Dal.Dal
{
    public class DalTrangThaiDH
    {
        internal static List<BizTrangThaiDH> GetAll()
        {
            DalCommon dal = new DalCommon();
            var kq = from p in dal.BookIdeas_ShopDataContext.TrangThaiDHs
                     select new BizTrangThaiDH(p.idTTDH)
                     {
                         MaTTDH = p.maTTDH,
                         TenTTDH = p.tenTTDH,
                     };
            return kq.ToList<BizTrangThaiDH>();
        }
    }
}
